package fr.n7.sma.view;

import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;

import fr.n7.sma.model.Agent;
import fr.n7.sma.view.model.AgentViewProperties;
import fr.n7.sma.view.model.CellViewProperties;

public class AgentLabelMouseListener implements MouseMotionListener {

	Agent<AgentViewProperties, CellViewProperties> agent;
	Grid grid;
	
	public AgentLabelMouseListener(Grid grid, Agent<AgentViewProperties, CellViewProperties> agent){
		this.agent = agent;
		this.grid = grid;
	}
	
	@Override
	public void mouseDragged(MouseEvent e) {
		grid.moveAgent(agent, e.getPoint());
	}

	@Override
	public void mouseMoved(MouseEvent e) {
	}
}
